package com.songlanyun.modules.withdraw.dao;

import com.songlanyun.common.enums.WithdrawConstant;
import com.songlanyun.modules.withdraw.entity.Withdraw;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.withdraw.model.vo.AccountWalletVO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * 提现列表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-20 17:47:55
 */
@Mapper
public interface WithdrawDao extends BaseMapper<Withdraw> {

    /**
     * 锁定的总金额
     * @param userType
     * @param identityId
     * @return
     */
    BigDecimal getSumByShopLockAmount(WithdrawConstant.UserType userType, Long identityId);

    AccountWalletVO getWalletInfo(Long userId);
}
